<template>
  <div id="app">
    <!-- 需要缓存的页面在这里展示 -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <!-- 不需要缓存的页面在这里展示 -->
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>
<script>
export default {
  name: 'App'
}
</script>

<style>
body,
html,
#app {
  height: 100%;
  /* overflow-y: auto;
  -webkit-overflow-scrolling: touch; */
  background-color: #f2f5f6;
}
</style>
